import request from '@/utils/request'

const talentsEducation = {
  list (params) {
    return request.get('/kjrc/talentsEducation/list', { params })
  },
  myList (params) {
    return request.get('/kjrc/talentsEducation/myList', { params })
  },
  add (formData) {
    return request.post('/kjrc/talentsEducation/add', formData)
  },
  update (formData) {
    return request.post('/kjrc/talentsEducation/update', formData)
  },
  submit (formData) {
    return request.post('/kjrc/talentsEducation/submit', formData)
  },
  delete (id) {
    return request.post(`/kjrc/talentsEducation/delete/${id}`)
  },
  getDetailData (id) {
    return request.get(`/kjrc/talentsEducation/detail/${id}`)
  },
}

export default talentsEducation;
